<%-- 
    Document   : division_form
    Created on : Feb 10, 2013, 2:55:17 AM
    Author     : owtee
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<table align="center">
    <c:forEach items="${mesLst}" var="message">
        <tr>
            <td colspan="2">${message.getMesDetail()}</td>
        </tr>
    </c:forEach> 
    <tr>
        <td colspan="2">หน่วยงาน<hr></td>
    </tr>
    <tr>
        <td>บริษัท :</td>
        <td>
            <select id="ddlCom" name="ddlCom">
                <option value="">--- กรุณาเลือก ---</option>
                <c:forEach items="${comLst}" var="com">
                    <option value="${com.getComId()}" <c:if test="${com.getComId() == divi.getComId().getComId()}">selected</c:if>>
                        ${com.getComName()}
                    </option>
                </c:forEach>
            </select>
        </td>
    </tr>
    <tr>
        <td>ชื่อหน่วยงาน :</td>
        <td>
            <input class="inputbox" type="text" id="txtDivision" name="txtDivision" value="${divi.getDivName()}" />
        </td>
    </tr>                        
    <tr>
        <td colspan="2" style="text-align: center">
            <input type="submit" value="Save" />            
            <input type="button" value="Cancel" onclick="location.href='DivisionGetAll'"/>
        </td>                        
    </tr>
</table>
